function getToken() {
    token = window.localStorage.getItem('current_user');
    if(!token){
        window.location.href = '/admin/login';
        return false;
    }
    return token;
}